package com.banzhi.shop.activity;

import android.app.FragmentBreadCrumbs;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageView;

import com.banzhi.shop.R;
import com.banzhi.shop.base.BaseActivity;
import com.banzhi.shop.state.URLString;
import com.banzhi.shop.utils.Translucent;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.squareup.picasso.MemoryPolicy;
import com.squareup.picasso.NetworkPolicy;
import com.squareup.picasso.Picasso;

import static com.banzhi.shop.MyApp.context;

//拼团玩法
public class GroupPlayActivity extends BaseActivity {


    private ImageView mBack;
    private ImageView mImageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_group_play);
        Translucent.setTranslucent(this);
        initView();
        setListener();
    }

    private void initView() {
        mImageView = (ImageView) findViewById(R.id.webview);
        mBack = (ImageView) findViewById(R.id.iv_back);
        String str ="http://img.banzhishenghuo.com/asset/pintuan/pintuanwanfa.jpg" ;
        Picasso.with(context).load(str).memoryPolicy(MemoryPolicy.NO_CACHE).networkPolicy(NetworkPolicy.NO_CACHE).into(mImageView);



    }

    private void setListener() {
        mBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });



    }
}
